module.exports = {
  type: {
    type: String,
    default: 'circle',
    name: '图表类型',
    filedType: 'select',
    options: [
      {
        name: '线型',
        value: 'line'
      },
      {
        name: '圆形',
        value: 'circle'
      }
    ],
    // 是否支持多选，支持多选时default要指定为数组
    multiple: false
  },

  textInside: {
    type: Boolean,
    default: false,
    name: '文字在进度条内',
    filedType: 'switch'
  },

  showText: {
    type: Boolean,
    default: true,
    name: '显示文字',
    filedType: 'switch'
  },
  showRightText: {
    type: Boolean,
    default: false,
    name: '显示右侧文字',
    filedType: 'switch'
  },
  noShowRightText: {
    type: Boolean,
    default: false,
    name: '不显示未完成',
    filedType: 'switch'
  },
  rightTextType: {
    type: String,
    default: 'total',
    name: '右侧文字类型',
    filedType: 'select',
    options: [
      {
        name: '显示总数',
        value: 'total'
      },
      {
        name: '显示占比',
        value: 'rate'
      },
      {
        name: '显示单位',
        value: 'unit'
      }
    ],
    // 是否支持多选，支持多选时default要指定为数组
    multiple: false
  },

  decimalNum: {
    type: String,
    default: '2',
    name: '小数点位数',
    filedType: 'string'
  },
  width: {
    type: String,
    default: '300',
    name: '圆形直径',
    filedType: 'string'
  },
  strokeWidth: {
    type: String,
    default: '14',
    name: '进度条宽度',
    filedType: 'string'
  },
  strokeRadius: {
    type: String,
    default: '14',
    name: '线形进度条圆角',
    filedType: 'string'
  },

  data: {
    type: Array,
    default () {
      return [
        {
          "name": "",
          "value": 68,
          "unit": "人"
        }
      ]
    },
    name: '图表数据集',
    filedType: 'api'
  },

  bgColor: {
    type: String,
    default: '#fff',
    name: '背景颜色',
    filedType: 'color'
  },

  digiColor: {
    type: String,
    default: '#333',
    name: '字体颜色',
    filedType: 'color'
  },

  trackBackground: {
    type: String,
    default: 'rgba(238, 238, 238, 1)',
    name: '进度条背景色',
    filedType: 'color'
  },

  status: {
    type: String,
    default: 'text',
    name: '进度条类型',
    filedType: 'select',
    options: [
      {
        name: 'text',
        value: 'text'
      },
      {
        name: 'success',
        value: 'success'
      },
      {
        name: 'exception',
        value: 'exception'
      }
    ]
  },
  detailFontFamily: {
    type: String,
    default: 'digiface',
    name: '数据字体',
    filedType: 'string'
  },
  useGradient: {
    type: Boolean,
    default: false,
    name: '使用渐变色',
    filedType: 'switch'
  },

  colors: {
    type: Array,
    default () {
      return [
        '#657df5',
        '#ffb336',
        'rgba(238, 238, 238, 1)'
      ]
    },
    name: '调色板',
    nameTip: '图表按此处指定的值循环取色',
    filedType: 'list',
    subType: 'color',
    subDefault: '#2bd3bd',
    max: 3
  }
}
